package com.mytrip.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.mytrip.base.annotation.model.Entity;

/**
 * 模块
 * 
 * @author xz
 * 
 */
@Entity(id = "id")
public class Module extends BaseModelAdapter{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2369088298904119530L;

	private Long id;

	private String moduleName;

	private Integer isSubModule;

	private Module parentModule;

	private Integer moduleListOrder;

	private String moduleUrl;

	private String modulePwd;

	private Date createTime;

	private Date updateTime;

	private String actionName;

	private String moduleDomainUrl;

	private int type;// 0:action,1:key,2:button

	private List<Module> subModuleList = new ArrayList<Module>(0);

	public String getModuleDomainUrl(){
		return moduleDomainUrl;
	}

	public void setModuleDomainUrl(String moduleDomainUrl){
		this.moduleDomainUrl = moduleDomainUrl;
	}

	public Long getId(){
		return id;
	}

	public void setId(Long id){
		this.id = id;
	}

	public List<Module> getSubModuleList(){
		return subModuleList;
	}

	public void setSubModuleList(List<Module> subModuleList){
		this.subModuleList = subModuleList;
	}

	public String getActionName(){
		return actionName;
	}

	public void setActionName(String actionName){
		this.actionName = actionName;
	}

	public String getModuleName(){
		return moduleName;
	}

	public void setModuleName(String moduleName){
		this.moduleName = moduleName;
	}

	public Integer getIsSubModule(){
		return isSubModule;
	}

	public void setIsSubModule(Integer isSubModule){
		this.isSubModule = isSubModule;
	}

	public Module getParentModule(){
		return parentModule;
	}

	public void setParentModule(Module parentModule){
		this.parentModule = parentModule;
	}

	public Integer getModuleListOrder(){
		return moduleListOrder;
	}

	public void setModuleListOrder(Integer moduleListOrder){
		this.moduleListOrder = moduleListOrder;
	}

	public String getModuleUrl(){
		return moduleUrl;
	}

	public void setModuleUrl(String moduleUrl){
		this.moduleUrl = moduleUrl;
	}

	public Date getCreateTime(){
		return createTime;
	}

	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}

	public Date getUpdateTime(){
		return updateTime;
	}

	public void setUpdateTime(Date updateTime){
		this.updateTime = updateTime;
	}

	public String getModulePwd(){
		return modulePwd;
	}

	public void setModulePwd(String modulePwd){
		this.modulePwd = modulePwd;
	}

	public int getType(){
		return type;
	}

	public void setType(int type){
		this.type = type;
	}
}
